package decorator;

public class MainTest6 {
    public static void main(String[] args) {
        Car car = new RunCar();
        car.show();
        System.out.println("------------");
        Car flyCar = new FlyCarDecorator(car);
        flyCar.show();
        System.out.println("------------");
        Car swimCar = new SwimCarDecorator(flyCar);
        swimCar.show();
    }
}
